package structure.bridge;

/**
 * 抽象与实现解藕
 *
 * @author yeyangtao
 * @date 2020/6/5 14:27
 */
public class Demo {
    public static void main(String[] args) {
        AbstractShape red = new Circle(1, 2, 3, new RedCircle());

        AbstractShape green = new Circle(1, 2, 3, new GreenCircle());

        red.draw();
        green.draw();
    }
}
